﻿using System.ComponentModel.DataAnnotations;

namespace dotnet.entity
{
    public class LoginModel
    {

        [Required(ErrorMessage = "用户名必填")]
        public required string Username { get; set; }

        [Required(ErrorMessage = "密码必填")]
        public required string Password { get; set; }   
    }
}
